﻿using AOP.Test.AssemblyData;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace AOP.Test
{
    public class BaseAssembly
    {
        //protected Assembly Assembly { get; private set; }
        public void WeaveAssembly(string assemblyPath)
        {
            //var weaver = new ModuleWeaver();
            //var result = weaver.ExecuteTestRun(assemblyPath, false);
            //Assembly = result.Assembly;
        }

        public  dynamic GetInstance(string className)
        {
            Assembly assembly = Assembly.GetExecutingAssembly();
            //var type = Assembly.GetType(className, true);
            return Activator.CreateInstance(typeof(InstanceSingleMethod));
        }
    }
}
